package com.app.system.domain;

import com.app.common.annotation.Excel;
import com.app.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 储存用户的证件照制作历史对象 user_photo
 *
 * @author app
 * @date 2025-11-05
 */
public class UserPhoto extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    private Long userId;

    /**
     * 用户
     */
    @Excel(name = "用户昵称")
    private String name;

    /**
     * 标准图片
     */
    @Excel(name = "标准图片")
    private String photo;

    /**
     * 存续状态
     */
    @Excel(name = "存续状态")
    private String deleteFlag;

    /**
     * 原图
     */
    @Excel(name = "原图")
    private String imageOld;

    /**
     * 高清图片
     */
    @Excel(name = "高清图片")
    private String newImage;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getPhoto() {
        return photo;
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getDeleteFlag() {
        return deleteFlag;
    }

    public void setImageOld(String imageOld) {
        this.imageOld = imageOld;
    }

    public String getImageOld() {
        return imageOld;
    }

    public void setNewImage(String newImage) {
        this.newImage = newImage;
    }

    public String getNewImage() {
        return newImage;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("photo", getPhoto())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("deleteFlag", getDeleteFlag())
                .append("imageOld", getImageOld())
                .append("newImage", getNewImage())
                .append("name", getName())
                .toString();
    }
}
